/*
 * COPYRIGHT. HSBC HOLDINGS PLC 2016. ALL RIGHTS RESERVED.
 * 
 * This software is only to be used for the purpose for which it has been
 * provided. No part of it is to be reproduced, disassembled, transmitted,
 * stored in a retrieval system nor translated in any human or computer
 * language in any way or for any other purposes whatsoever without the
 * written consent of HSBC Holdings plc.
 */
package com.pactera.integral.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.pactera.integral.common.web.GenericController;
import com.pactera.integral.common.web.Response;
import com.pactera.integral.service.AuthorityService;

/**
 * SysOperationController
 */
@Controller
@RequestMapping("/adm/authority")
public class AuthorityController extends GenericController {
	
	@Resource
	private AuthorityService service;

  

	@RequestMapping(value = "/allAuthority",method = RequestMethod.GET)
	@ResponseBody
    public Response getAllAuthority() {
		
        return this.normal(service.getAllAuthority()); 
       
    }
    
	
}
